<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="__PUBLIC__/assets/css/amui.all.min.css">
    <link rel="stylesheet" href="__PUBLIC__/assets/css/app.css">
    <script src="__PUBLIC__/assets/js/zepto.min.js"></script>
    <script src="__PUBLIC__/assets/js/amui.min.js"></script>
</head>
<body>
<header id="amz-header" class="head" style="z-index:1000;">
<div class="amz-container am-cf">
    <h1>
        <a href="#">SCS Activity</a>
    </h1>
    <nav>
        <ul class="amz-header-nav am-collapse">
            <li>
                <a href="__APP__/Home/Activity/index">添加活动</a>
            </li>
            <li >
                <a href="__APP__/Home/Activity/regActivity">所有活动</a>
            </li>
            <li>
                <a href="__APP__/Home/Activity/mngActivity">活动管理</a>
            </li>
            <li style="padding-right: 50px;">
                <a href="__APP__/Home/Assign/index">授权管理</a>
            </li>

            <li >
                <a style="padding:0">欢迎,{$Think.session.user.userid}</a>
            </li>

            <li class="nav-profile need-check">
                <a title="退出登录" href="__APP__/Home/Login/logout">
                    <img width="24" height="24" src="__PUBLIC__/assets/i/logout.jpg">
                    <span class="am-icon-sign-out"></span>
                </a>
            </li>
        </ul>
    </nav>
</div>
</header>
<div class="amz-banner">
    <div data-am-scrollspy="{animation: 'scale-up', repeat: true}" class="amz-container am-scrollspy-init am-scrollspy-inview am-animation-scale-up" >

        <h1>软件学院活动管理网站</h1>
        <p>期待你的参与，共同管理学生活动.</p>
        <!-- 按钮触发器， 需要指定 target -->
    </div>
</div>
  <if condition="$Think.session.user.userid eq '' ">
      <script type="text/javascript">
        alert('Login First!!!');
        window.location.href="__URL__/loginRedirect";
      </script>
      <else />
  </if>
<if condition="$Think.session.user.authority ==0 ">
    <script type="text/javascript">
        alert('您没有权限访问!!!');
        window.location.href="__APP__/User/Login/login";
    </script>
    <else />
</if>
</body>
</html>



